void scrollbar_init(int win, unsigned short *buf, int w, int h, int top, int lrb, char *filename, int lang, int func);
void scrollbar_init_nofile(int win, unsigned short *buf, int w, int h, int top, int lrb, char *p, int func);
int *openfile(char *filename, int lang);
int scrollbar_setbtnpos(int i);
void scrollbar_drawrow(int win, unsigned short *buf, int w, int h);
void scrollbar_drawcol(int win, unsigned short *buf, int w, int h);
void scrollbar_drawscroll(int win, int j);

void am_colt_click(int win, int mx, int my);
void am_colf_click(int win, int mx, int my);
void am_colm_click(int win, int mx, int my);
void am_rowt_click(int win, int mx, int my);
void am_rowf_click(int win, int mx, int my);
void am_rowm_click(int win, int mx, int my);
void am_mouse_up(int win, int mx, int my);
